<template>
  <div id="zffw">
    <div id="zffwbt">
      <h3>我要办 <span>我要查</span></h3>
    </div>
    <div>
      <ul class="">
        <li v-for="(v, i) in newobj" :key="i" @click="fun(v.url)">
          <img :src="v.imgUrl" alt="" />
          <div class="left">
            <h4>{{ v.title }}</h4>
            <span>{{ v.cont }}</span>
          </div>
        </li>
      </ul>
    </div>
    <div id="zffwbt">
      <h3>我的证照</h3>
      <span>更多</span>
    </div>
    <div class="lunb">
      <img src="../../../../public/lifeimg/sx2.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      wybData: [],
    };
  },
  methods: {
    fun(url) {
      // 编程式方式进行----路由跳转
      this.$router.push(url);
    },
  },
  mounted() {
    // 页面加载完毕发送请求
    // 调用vuex的actions触发异步操作
    this.$store.dispatch("LIYUSHANXI_DATA", { url: "user/life13/datamock" });
  },
  computed: {
    newobj() {
      return this.$store.state.life.liyushanxi.wybData;
    },
  },
};
</script>

<style lang="less" scoped>
#zffw {
  width: 92%;
  margin: auto;
  font-size: 0.12rem;
  margin-bottom: 0.2rem;
}
#zffwbt {
  display: flex;
  line-height: 0.3rem;
  justify-content: space-between;
  margin-top: 0rem;
}
ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
li {
  display: flex;
  width: 45%;
  float: left;
  height: 0.6rem;
  margin-top: 0.1rem;
  overflow: hidden;
}
h3 {
  line-height: 0.3rem;
  font-size: 0.16rem;
}
h4 {
  line-height: 0.3rem;
  font-size: 0.14rem;
}
img {
  width: 0.5rem;
  height: 0.5rem;
  // margin-top: 0.1rem;
  margin-right: 0.125rem;
}
li span {
  color: #747675;
}
span {
  font-size: 0.1rem;
  color: #747675;
}
.lunb {
  width: 100%;
  margin: auto;
}
.lunb img {
  width: 100%;
  height: 100%;
}
</style>